<!-- 基本订单信息 -->
<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-info-circle"></i> 基本订单信息</h3>
    </div>
    <div class="panel-body" style="padding: 10px;">
        <div class="row" style="margin-bottom: 5px;">
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Order_source')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <!-- <input id="c-order_source" data-rule="required" class="form-control" name="row[order_source]" type="number" value="{$row.order_source|default='1'|htmlentities}"> -->
                        {:build_select('row[order_source]', $orderSourceList, isset($row['order_source']) ? $row['order_source'] : '', ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
                        
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('User_source')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <!-- <input id="c-user_source" data-rule="required" class="form-control" name="row[user_source]" type="number" value="{$row.user_source|default=''|htmlentities}"> -->
                        {:build_select('row[user_source]', $userSourceList, isset($row['user_source']) ? $row['user_source'] : '', ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
                        
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Year')}:</label>
                    <div class="col-xs-12 col-sm-8">
                       
                        <input id="c-year" data-rule="required" class="form-control" name="row[year]" type="number" value="{$row.year|default=date('Y')}">
                    </div>
                </div>
            </div>
        </div>

        <div class="row" style="margin-bottom: 5px;">
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Order_no')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-order_no"  class="form-control" name="row[order_no]" placeholder="系统自动生成" type="text" value="{$row.order_no|default=''|htmlentities}" readonly>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Serial_no')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-serial_no"  class="form-control" name="row[serial_no]" placeholder="系统自动生成" type="text" value="{$row.serial_no|default=''|htmlentities}" readonly>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Order_level')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <!-- <input id="c-order_level" data-rule="required" class="form-control" name="row[order_level]" type="number" value="{$row.order_level|default=''|htmlentities}"> -->
                        {:build_select('row[order_level]', $ptOrderLevelList, isset($row['order_level']) ? $row['order_level'] : '', ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
                    </div>
                </div>
            </div>
        </div>


        <div class="row" style="margin-bottom: 5px;">
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('User_name')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-user_name" data-rule="required" class="form-control" name="row[user_name]" type="text" placeholder="请输入姓名" value="{$row.user_name|default=''|htmlentities}">
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Id_card')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-id_card" data-rule="required;IDcard" class="form-control" name="row[id_card]" type="text" placeholder="请输入身份证号" value="{$row.id_card|default=''|htmlentities}">
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Utel')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-utel"  class="form-control" name="row[utel]" type="text" placeholder="请输入电话" value="{$row.utel|default=''|htmlentities}">
                    </div>
                </div>
            </div>
        </div>

     
        <div class="row" style="margin-bottom: 5px;">
           

            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Grade_name')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-grade_id"   data-rule="required" data-source="pt/grade/index" class="form-control selectpage" 
                         placeholder="请输入系列名称/ID进行搜索"
                         data-field="grade_name" 
                         data-search-field="id,grade_name"
                         data-pagination="true"
                         data-format-item="{grade_code}-{grade_name}"
                         data-params="fields=id,grade_name,grade_code"
                         name="row[grade_id]" type="text" value="{$row.grade_id|default=''|htmlentities}">
    
                         <input id="c-pt_grade"    name="row[pt_grade]" type="hidden" value="{$row.pt_grade|default=''|htmlentities}">
         
                    </div>
                </div>
            </div>
    
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Agency_name')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-agency_id" data-rule="required" data-source="pt/agency/index" class="form-control selectpage"
                         placeholder="请输入机构名称/ID进行搜索"
                         data-field="agency_name" 
                         data-search-field="id,agency_name"
                         data-pagination="true"
                         data-format-item="ID{id} / {agency_name}"
                         data-params="fields=id,agency_name"
                         name="row[agency_id]" type="text" value="{$row.agency_id|default=''|htmlentities}">
    
                         <input id="c-agency_name" name="row[agency_name]" type="hidden"   value="{$row.agency_name|default=''|htmlentities}">
                    </div>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Company')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-company"  class="form-control" name="row[company]" type="text" value="{$row.company|default=''|htmlentities}">
                    </div>
                </div>
            </div>
           
        </div>

      

        <div class="row" style="margin-bottom: 5px;">
            <div class="col-md-8">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Major_name')}:</label>
                    <div class="col-xs-12 col-sm-8">
                      
                        <div class="form-inline" data-toggle="cxselect" data-selects="series,category,major" style="display: flex; white-space: nowrap; gap: 10px;">
                            <select class="series form-control" name="row[series_id]" data-url="pt/major/major" data-value="{$row.series_id|default=''}" style="flex: 1; min-width: 0;"></select>
                            <select class="category form-control" name="row[category_id]" data-url="pt/major/major" data-query-name="series" data-value="{$row.category_id|default=''}" style="flex: 1; min-width: 0;"></select>
                            <select class="major form-control" name="row[major_id]" data-url="pt/major/major" data-query-name="category" data-value="{$row.major_id|default=''}" style="flex: 1; min-width: 0;"></select>
                            <input id="c-major_name"  class="form-control" name="row[major_name]" type="hidden" value="{$row.major_name|htmlentities}">
                            <input id="c-series_name"  class="form-control" name="row[series_name]" type="hidden" value="{$row.series_name|htmlentities}">
                            <!-- <input id="c-category_name"  class="form-control" name="row[category_name]" type="hidden" value="{$row.category_name|htmlentities}"> -->
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Leader_name')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-leader_id" data-rule="required" data-source="pt/leader/index" class="form-control selectpage" 
                        placeholder="请输入组长姓名进行搜索"
                        data-field="nickname" 
                        data-search-field="nickname"
                        data-pagination="true"
                        data-format-item="{nickname}"
                        data-params="fields=id,nickname"
                        data-key-field="id"
                        data-value-field="nickname"
                        name="row[leader_id]" type="text" value="{$row.leader_id|htmlentities}">
                        
                        <input id="c-leader_name"  name="row[leader_name]" type="hidden"  value="{$row.leader_name|htmlentities}">
                    </div>
                </div>
            </div>
        </div>


          <!-- 社保转移相关 -->
          <div class="row" style="margin-bottom: 5px;">
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Social_security_trans')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        {:build_radios('row[social_security_trans]', ['1'=>__('Yes'), '0'=>__('No')], isset($row) ? $row['social_security_trans'] : '0')} 
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Assign_company')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-assign_company" class="form-control" name="row[assign_company]" type="text" value="{if condition='isset($row)'}{$row.assign_company|htmlentities}{else/}{/if}">
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Review_form_status')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        {:build_radios('row[review_form_status]', ['1'=>__('Yes'), '0'=>__('No')], isset($row) ? $row['review_form_status'] : '0')} 
                    </div>
                </div>
            </div>
        </div>

        <!-- 审核表单状态 -->
        <div class="row">
           
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Cert_download')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        {:build_radios('row[cert_download]', ['1'=>__('Yes'), '0'=>__('No')], isset($row) ? $row['cert_download'] : '0')} 
                    </div>
                </div>
            </div>
 
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Ass_worker_supplement')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        {:build_radios('row[ass_worker_supplement]', ['1'=>__('Yes'), '0'=>__('No')], isset($row) ? $row['ass_worker_supplement'] : '0')} 
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Edu_supplement')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        {:build_radios('row[edu_supplement]', ['1'=>__('Yes'), '0'=>__('No')], isset($row) ? $row['edu_supplement'] : '0')} 
                    </div>
                </div>
            </div>
        </div>

        <!-- 学历证书情况 -->
        <div class="row" style="margin-bottom: 5px;">
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Credential_note')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <textarea id="c-credential_note" class="form-control" name="row[credential_note]" rows="4" placeholder="请描述证书情况...">{if condition='isset($row)'}{$row.credential_note|htmlentities}{else/}{/if}</textarea>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Edu_cert_situation')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <textarea id="c-edu_cert_situation" class="form-control" name="row[edu_cert_situation]" rows="4" placeholder="请描述交易经历...">{if condition='isset($row)'}{$row.edu_cert_situation|htmlentities}{else/}{/if}</textarea>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Work_history')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <textarea id="c-work_history" class="form-control" name="row[work_history]" rows="4" placeholder="请描述工作经历情况...">{if condition='isset($row)'}{$row.work_history|htmlentities}{else/}{/if}</textarea>
                    </div>
                </div>
            </div>
           
        </div>

        <div class="row">
          
            <div class="col-md-8">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-2">{:__('省市区')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">  
                            <select class="province form-control" name="row[province_id]" data-url="provinces/area" data-value="{$row.province_id|default='11'}"></select>
                            <select class="city form-control" name="row[city_id]" data-url="provinces/area" data-query-name="province" data-value="{$row.city_id|default=''}"></select>
                            <select class="area form-control" name="row[district_id]" data-url="provinces/area" data-query-name="city" data-value="{$row.district_id|default=''}"></select>
                            <input id="c-district_name"  class="form-control" name="row[district_name]" type="hidden" value="{$row.district_name|htmlentities}">
                        </div>
                    </div>
                </div>
            </div>

           
        </div>
 

    </div>
</div>

<!-- 合同信息 -->
<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-file-text"></i> 合同信息</h3>
    </div>
    <div class="panel-body" style="padding: 10px;">
        <div class="row" style="margin-bottom: 5px;">
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Contract_term')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-contract_term"   class="form-control" name="row[contract_term]" type="text" placeholder="请输入合同期限" value="{$row.contract_term|default=''|htmlentities}">
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Contract_fee')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-contract_fee"   class="form-control" step="0.01" name="row[contract_fee]" type="number" placeholder="请输入合同费用" value="{$row.contract_fee|default=''|htmlentities}">
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Contract_start_time')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-contract_start_time"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm" placeholder="请选择合同开始时间" data-use-current="true" name="row[contract_start_time]" type="text" value="{$row.contract_start_time|htmlentities}">
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
           
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Contract_end_time')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-contract_end_time"   class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm" placeholder="请选择合同结束时间" data-use-current="true" name="row[contract_end_time]" type="text" value="{$row.contract_end_time|htmlentities}">
                    </div>
                </div>
            </div>

            
            <!-- <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Etp_gov_acc_information')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-etp_gov_acc_information" class="form-control" name="row[etp_gov_acc_information]" type="text" value="{$row.etp_gov_acc_information|htmlentities}">
                    </div>
                </div>
            </div> -->

            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Per_gov_acc_information')}:</label>
                    <div class="col-xs-12 col-sm-8">
                  
                            <textarea id="c-per_gov_acc_information" class="form-control" name="row[per_gov_acc_information]" rows="3" placeholder="请描述政务网账号情况...">{if condition='isset($row)'}{$row.per_gov_acc_information|htmlentities}{else/}{/if}</textarea>
       
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Xuexin_network_acc_information')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <!-- <input id="c-xuexin_network_acc_information" class="form-control" name="row[xuexin_network_acc_information]" type="text" value="{$row.xuexin_network_acc_information|htmlentities}"> -->
                        <textarea id="c-xuexin_network_acc_information" class="form-control" name="row[xuexin_network_acc_information]" rows="3" placeholder="请描述学信网账号情况...">{if condition='isset($row)'}{$row.xuexin_network_acc_information|htmlentities}{else/}{/if}</textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="row"> 
          
            <div class="col-md-4">
                <div class="form-group" style="margin-bottom: 5px;">
                    <label class="control-label col-xs-12 col-sm-4">{:__('Cont_edu_acc_information')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <!-- <input id="c-cont_edu_acc_information" class="form-control" name="row[cont_edu_acc_information]" type="text" value="{$row.cont_edu_acc_information|htmlentities}"> -->
                        <textarea id="c-cont_edu_acc_information" class="form-control" name="row[cont_edu_acc_information]" rows="3" placeholder="请描述继续教育账号情况...">{if condition='isset($row)'}{$row.cont_edu_acc_information|htmlentities}{else/}{/if}</textarea>
                    </div>
                </div>
            </div>
        </div>
        
    </div>
</div>